/*
 * player.c
 *
 *  Created on: 2010/05/05
 *      Author: angela
 */
#include "player.h"

void createPlayer(Player * player, char * name)
{
	player->name = (char *)malloc(32 * sizeof(char));
	strcpy( player->name, name ) ;
	player->score = 0;
}

void deletePlayer(Player* player)
{
	//Libertar memoria do nome
	free(player->name);
	//Liberbar memoria da estrutura
	free(player);
}


